
import { createStore, combineReducers, applyMiddleware, compose } from 'redux';
import { ConnectedRouter, routerReducer, push } from 'react-router-redux'
import middlewares from './middlewares'

import reducers from '../reducer';

export default function configureStore(initialState) {
  const store = createStore(
    combineReducers({
      reducers,
      router: routerReducer
    }),
    applyMiddleware(...middlewares)
  )
  return store;
}

